#ifdef MMU_ON
#define GPBCON (volatile unsigned long *)0xA0000010
#define GPBDAT (volatile unsigned long *)0xA0000014
#else
#define GPBCON (volatile unsigned long *)0x56000010
#define GPBDAT (volatile unsigned long *)0x56000014
#endif

void led_init()
{
    *(GPBCON) = 0x15400;       //设置GPB5-GPB8为OUTPUT
}

void led_on()
{
    *(GPBDAT) = 0x75F;        //点亮LED1和LED3
}

void led_off()
{
    *(GPBDAT) = 0x7FF;
}
